import request from "@/utils/request";
// apis/moment/properties/filter/vip_zone?access_token=8d31e9ee-9c9a-412b-a90f-6f6c4ae6fca5
// 请求方法: GET
// /apis/moment/moments/collect/vip_zone/integrated?access_token=8d31e9ee-9c9a-412b-a90f-6f6c4ae6fca5&pageSize=20&pageNum=0
// /apis/moment/activityZones/collect/default?access_token=8d31e9ee-9c9a-412b-a90f-6f6c4ae6fca5&pageSize=16
// /apis/moment/moments/collect/vip_zone/priceDesc?access_token=8d31e9ee-9c9a-412b-a90f-6f6c4ae6fca5&pageSize=20&pageNum=0
export interface choiseModel {
  groupType?: string;
  name: string;
  id: string;
}
type MainListModel = {
  choises: [];
  formType: string;
  label: string;
  name: string;
  style: string;
  valueType: string;
};
const access_token = "8d31e9ee-9c9a-412b-a90f-6f6c4ae6fca5";
export default {
  getMainList() {
    return request.get<any, MainListModel[]>(
      `/apis/moment/properties/filter/vip_zone?access_token=${access_token}`
    );
  },
  getVideoList(pageSize: number, pageNum: number) {
    return request.post<any, any>("/apis/moment/moments/collect/vip_zone/integrated",{},{
        params: {
          access_token,
          pageSize,
          pageNum,
        },
      }
    );
  },
  getMainTitle(pageSize:number){
    return request.get<any,any>("/apis/moment/activityZones/collect/default",{
      params:{
        access_token,
        pageSize
      }
    })
  },
  getPriceHigh(pageSize:number,pageNum:number){
    return request.post<any,any>("/apis/moment/moments/collect/vip_zone/priceDesc",{},{
      params:{
        access_token,
        pageSize,
        pageNum
      }
    })
  },
  getPriceLow(pageSize:number, pageNum:number){
    return request.post<any,any>("/apis/moment/moments/collect/vip_zone/priceAsc",{},{
      params:{
        access_token,
        pageSize,
        pageNum
      }
    })
  }
};
